public class Main {
    public static void main(String[] args) {
        NumSign numSign1 = new NumSign(5,'+');
        NumSign numSign2 = new NumSign(2,'*');
        NumSign numSign3 = new NumSign(3,'-');
        NumSign numSign4 = new NumSign(6,'/');
        NumSign numSign5 = new NumSign(2,'=');

        Expression exp = new Expression();
        exp.add(numSign1);
        exp.add(numSign2);
        exp.add(numSign3);
        exp.add(numSign4);
        exp.add(numSign5);
        System.out.println(exp.toString());
        System.out.println(exp.getResult());

    }
}
